using System;
using System.Collections.Generic;
using System.Text;

namespace BABILON
{
    class Carrier : Robot
    {
        private int _E = 0;

        public int E
        {
            get { return _E; }
            set { _E = value; }
        }

        public Carrier()
            : base(30)
        {
            Random ran = new Random();
            E = ran.Next(50, 100);
        }
        public override int DiChuyen(int S)
        {
            //M * S + 4 * E * S. 
            int nangLuongTieuThu = M * S + 4 * E * S;
            NangLuongTieuThu += nangLuongTieuThu;
            return nangLuongTieuThu;
        }

        public override string TenLop()
        {
            return "Carrier";
        }

        public override void XuatThongTin()
        {
            base.XuatThongTin();
            Console.WriteLine("nang luong mang theo: " + E);
            Console.WriteLine("Nang luong tieu thu: " + NangLuongTieuThu);
        }
    }
}
